import Vue from 'vue'
import Router from 'vue-router'
import news from '../components/news.vue'
import news2 from '../components/news2.vue'
import news3 from '../components/news3.vue'
import xiangqing from '../components/xiangqing.vue'
import no1 from '../components/no1.vue'
import no2 from '../components/no2.vue'
import no3 from '../components/no3.vue'
import no4 from '../components/no4.vue'
import no5 from '../components/no5.vue'
import no6 from '../components/no6.vue'
Vue.use(Router)                                                                                                                                                                                                         
export default new Router({
    routes: [
        { path: '/', name: 'no1', component: no1 },
        { path: '/no2', name: 'no2', component: no2 },
        { path: '/no3', name: 'no3', component: no3 },
        {path:'/no4',name:'no3',component:no4},
        {redirect:'/no5/type/全部新闻',path:'/no5',name:'no5',component:no5,children:[
    //重定向
    // {
    //     path:'type/:type',
    //     name:'news',
    //     component:news
    // },
    {
        path:'/no5/type/全部新闻',
        name:'type1',
        component:news
    },
    {
        path:'/no5/type/新茶动态',
        name:'type2',
        component:news2
    },
    {
        path:'/no5/type/产品新闻',
        name:'type3',
        component:news3
    },
]},
        {path:'/no6',name:'no3',component:no6},
        {path:'/xiangqing/:tea',name:'xiangqing',component:xiangqing}
    ]
})